<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<MessageViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="rmc">
        <div class="resultMessage">
            <%= string.Format("<div class='messageIcon icon_{0}'></div>", (int)Model.Status) %>
            <dl>
                <dt>
                    <%= Model.Body %>
                </dt>
                <% int i = 1;
                   foreach (var item in Model.MessageCollection) {
                       Response.Write(string.Format("<dd>{1}. {0}</dd>", item.Value, i++));
                   }
                %>
            </dl>
            <div class="operate">
                <% foreach (string s in Model.Operate) { %>
                <%=s %>
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <%= HtmlMetaHelper.HtmlTitle(Model.Title)%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="jsContent" runat="server">

    <script type="text/javascript">
        $(function() {
            setTimeout(function() {
                location.href = $(".operate a:first-child").attr("href");
            }, 3000);
        });
    </script>

</asp:Content>
